<template>
  <NavBar />
  <div class="p-3 mb-2 bg-primary text-white"></div>
  <div class="modal" tabindex="-1">
    <div class="modal-dialog">
      <div class="modal-content">
        <div class="modal-header">
          <h5 class="modal-title">Modal title</h5>
          <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
        </div>
        <div class="modal-body">
          <p>Modal body text goes here.</p>
        </div>
        <div class="modal-footer">
          <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
          <button type="button" class="btn btn-primary">Save changes</button>
        </div>
      </div>
    </div>
  </div>
  <router-view />
</template>

<script>
import 'bootstrap/dist/css/bootstrap.css';
import 'bootstrap/dist/js/bootstrap';   //js加入后那个展开才能交互
import NavBar from './components/NavBar.vue';


export default {
  name: "App",
  components: {
    NavBar,
  }
}
</script>

<style>
:root {
  --primary-color: #2b3391;
  --primary-light: #3d47b3;
  --primary-dark: #1a1f5c;
  --accent-color: #00c9a7;
  --text-light: #ffffff;
  --text-dark: #2c3e50;
  --background-light: #f8f9fa;
  --background-dark: #1a1f5c;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--background-light);
  color: var(--text-dark);
}

#app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-container {
  padding: 2rem;
  flex: 1;
  background: linear-gradient(135deg, rgba(43, 51, 145, 0.05) 0%, rgba(0, 201, 167, 0.05) 100%);
}

.card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(43, 51, 145, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 12px rgba(43, 51, 145, 0.15);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(43, 51, 145, 0.2);
}

.table {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(43, 51, 145, 0.1);
}

.table thead th {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  color: var(--text-light);
  border: none;
  padding: 1rem;
}

.table tbody tr {
  transition: background-color 0.3s ease;
}

.table tbody tr:hover {
  background-color: rgba(43, 51, 145, 0.05);
}

/* 动画效果 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-enter-active {
  animation: fadeIn 0.5s ease-out;
}

.fade-leave-active {
  animation: fadeIn 0.5s ease-out reverse;
}
</style>
